package com.levi.form;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author shentong
 * @since 2022/4/4 6:28 PM
 */
@Data
@ApiModel("添加收货地址form表单对象")
@AllArgsConstructor
@NoArgsConstructor
public class ShippingForm {

    @ApiModelProperty("收货人姓名")
    @NotBlank(message = "收货人姓名不能为空")
    private String receiverName;

    @ApiModelProperty("收货人座机")
    @NotBlank(message = "收货人座机不能为空")
    private String receiverPhone;

    @ApiModelProperty("收货人移动电话")
    @NotBlank(message = "收货人移动电话")
    private String receiverMobile;

    @ApiModelProperty("省")
    @NotBlank(message = "省不能为空")
    private String receiverProvince;

    @ApiModelProperty("市")
    @NotBlank(message = "市不能为空")
    private String receiverCity;

    @ApiModelProperty("区/县")
    @NotBlank(message = "区/县不能为空")
    private String receiverDistrict;

    @ApiModelProperty("详细收货地址")
    @NotBlank(message = "详细收货地址不能为空")
    private String receiverAddress;

    @ApiModelProperty("邮编")
    @NotBlank(message = "邮编不能为空")
    private String receiverZip;


}
